package cn.xiuxian.dao;

import cn.xiuxian.entity.User;
import sun.rmi.server.UnicastServerRef;

import java.util.List;

public interface IUserDao {

    int  save(User user);

    User  findByUsername(String username);

    void  saveList(List<User> userList);

    void  saveBatch(List<User> userList);

    int  deleByid(Integer id);

    Object getUserByid(Integer id);

    int  deleteByid(User user,Integer id);

    User   getUserByid(User user,Integer id);

    List<User>  getAllUser(User user);

    List<User>  getAll(User user);
 }
